Dismiss popups on show
authorMatthias Clasen <mclasen@redhat.com>
Fri, 3 Feb 2012 11:49:08 +0000 (06:49 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 14 Feb 2012 21:36:54 +0000 (16:36 -0500)
This ensures that the editor always comes up without popups,
even when it is reused.

gtk/gtkcoloreditor.c

index 74d3cc57080a71eebf18004e647731d0e7ef3b3d..3bc7f0a52e4fe7756662265de71abff91b795c09 100644 (file)
@@ -511,6 +511,8 @@ gtk_color_editor_init (GtkColorEditor *editor)
 
   g_signal_connect (editor->priv->overlay, "get-child-position",
                     G_CALLBACK (get_child_position), editor);
+  g_signal_connect (editor, "notify::visible",
+                    G_CALLBACK (dismiss_current_popup), NULL);
 
   gtk_widget_show_all (editor->priv->overlay);